package changeEmployeeTransaction.changeClassificationTransaction;

import schedule.MonthlySchedule;
import schedule.PaymentSchedule;
import classification.PaymentClassification;
import classification.SalariedClassification;
import database.PayrollDatabase;

public class ChangeSalariedTransaction extends ChangeClassificationTransaction {
	private double salary;

	public ChangeSalariedTransaction(int id, double salary,
			PayrollDatabase database) {
		super(id, database);
		this.salary = salary;
	}

	@Override
	protected PaymentClassification getClassification() {
		return new SalariedClassification(salary);
	}

	@Override
	protected PaymentSchedule getSchedule() {
		return new MonthlySchedule();
	}
}
